/*
 * NewEntryRequest.java
 *
 * Created on March 28, 2007, 12:24 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.atomojo.app;

import org.infoset.xml.Document;
import org.restlet.Request;
import org.restlet.representation.Representation;
import org.restlet.util.WrapperRequest;

/**
 *
 * @author alex
 */
public class NewEntryRequest extends WrapperRequest
{

   InfosetRepresentation irep;
   
   /** Creates a new instance of NewEntryRequest */
   public NewEntryRequest(Request r,Document entryDoc)
   {
      super(r);
      this.irep = new InfosetRepresentation(r.getEntity().getMediaType(),entryDoc);
   }
   
   public Representation getEntity() {
      return irep;
   }
   
   public boolean isEntityAvailable() { return true; }
   
}
